* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    overflow: hidden;
    background: #666;
    position: relative;
}

.music-info {
    color: #aaa;
    font-size: 30px;
    transition: .5s ease;
    user-select: none;
}

.music-info.active {
    color: #fff;
    font-size: 40px;
}
.music-info.over{
    color: #777;
}

.music-info.hide{
    transform: translateX(-100%);
}
audio {
    display: none;
}

.lrc {
    color: #ddd;
    font-size: 30px;
    letter-spacing: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    user-select: none;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* white-space: nowrap; */
    margin: 0 0 40px 0;
    font-weight: 700;
    pointer-events: none;
}

.lrc .cn {
    font-size: 20px;
    color: #aaa;
    letter-spacing: 0px;
    padding: 10px 0 0 0;
    /* transition: all 2s; */
    animation: animate-cn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.lrc .cn.active {
    /* letter-spacing: 20px; */
}

.lrc .jp {
    text-shadow: 0 0 40px rgba(255, 255, 255, 1);
    /* -8px -3px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000; */
    /* transition: all 2s; */
    animation: animate-jp 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.lrc .jp.active {
    /* letter-spacing: 10px; */

}

.progress {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 10px;
    background: #fff;
    cursor: pointer;
}

.progress .progress-bar {
    cursor: pointer;
    width: 0;
    height: 100%;
    background: #ff6347;
    transition: .3s;
}

.progress .hover-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 102, 143, 0.3);
    pointer-events: none;
}
.hover-time{
    position: absolute;
    transform: translateX(-50%);
    bottom: 0;
    color: #fff;
    background-color: #111;
    padding: 3px 6px;
    pointer-events: none;
    border-radius: 2px;
    display: none;
}

.debug{
    text-align: center;
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height:50px;
    cursor:pointer;
    border: 2px solid #fff;
    transition: .8s;
}
.debug.hide{
    transform: translateX(100px);
}
canvas{
    width: 100%;
    height: 100%;
}

@keyframes animate-jp {
    0% {
        letter-spacing: 0px;
        opacity: 0;
        transform: translateY(10px);
    }

    80% {
        opacity: 1;
    }

    100% {
        letter-spacing: 10px;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate-cn {
    0% {
        letter-spacing: 0px;
        opacity: 0;
        transform: translateY(10px);
    }

    80% {
        opacity: 1;
    }

    100% {
        letter-spacing: 15px;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}